<template>
  <div class="coupon">
    <div class="coupou_top">
        <i @click="back()"></i>
        <span>红包和优惠券</span>
        <b></b>
    </div>
    <div class="coupou_nav">
        <router-link to="/coupon/chuCoupou">
            <span>楚楚街红包</span>
        </router-link>
        <router-link to="/coupon/shopCoupou">
            <span>店铺优惠券</span>
        </router-link>
        <i></i>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>

  export default{
    methods: {
        back () {
            this.$router.push('/mine');
        }
    }
  }

</script>

<style scoped>
.coupon{
    width: 100%;
    height: 47.33rem;
    background-color:#F7F7F7;
    position: absolute;
    z-index: 11;
}
.coupou_top{
    width: 100%;
    background-color: #fff;
    font-size: 14px;
    line-height: 30px;
    border-bottom: 1px solid #ddd;
}
.coupou_top i,.coupou_top b{
    width: 30px;
    height: 30px;
    display: inline-block;
}
.coupou_top i{
    background: url(../../assets/images/icon_back.png) no-repeat center center;
    background-size: 10px 20px;
    margin:5px 0 0 10px;
}
.coupou_top b{
    float: right;
    background: url(../../assets/images/icon_6.png) no-repeat center center;
    background-size: 20px 20px;
    margin:7px 8px 0 0;
}
.coupou_top span{
    width: 236px;
    display: inline-block;
    text-align: center;
    vertical-align: top;
    margin-top: 6px;
    color: #333;
}
.coupou_nav{
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: relative;
    display: flex;
}
.coupou_nav a{
    line-height: 36px;
    width: 50%;
    display: inline-block;
    color: #aaa;
    text-align: center;
    font-size: 14px;
}
.coupou_nav i{
    top: 13px;
    left: 50%;
    height: 12px;
    width: 1px;
    background: #e6e5e5;
    position: absolute;
}
.coupou_nav .router-link-active{
    color:#fe3355;
}
</style>
